/**
 * Collection lists
 * -- backoffice_audits
 */

Schema = mongoose.Schema;

var auditMongoSchema = new Schema({
  ip:String,
  userId:{type: Schema.Types.ObjectId, ref: 'user'},
  RESTURL:String,
  requestProcessedStatus: String,
  startDateTime: Date,
  endDateTime:Date,
  elapsedMilliSeconds:Number,
  Datetime:{type:Date,default:Date.now}
});
mongoose.model('backoffice_audits', auditMongoSchema,'backoffice_audits');
